<?php
declare (strict_types=1);

namespace app\validate;

use think\Validate;

/**
 * 反馈建议
 * Class Feedback
 * @package app\validate
 * @date 2020-05-28
 */
class Feedback extends Validate
{
    //验证规则
    protected $rule = [
        'mobile' => ['regex' => '/^1\d{10}$/'],
        'content' => 'require|max:140',
    ];

    //提示信息
    protected $message = [
        'mobile.regex' => '手机格式错误',
        'content.max' => '最多输入140个字符',

    ];


}
